<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
//use think\Route


//注意：定义路由规则后，原来的URL地址将会失效，变成非法请求。
//路由配置文件中
//return [
	// 添加路由规则 路由到 index控制器的hello操作方法
	//'hello/:name' => 'index/index/hello',
//];


//采用动态定义路由规则
//use think\Route;

//Route::rule('hello/:name', 'index/hello');


//定义路由的完整匹配
//return [
// 路由参数name为可选
//'hello/[:name]$' => 'index/hello',
//];
//我们需要加上一个$符号

// \think\Route::rule('category/:id','home/Index/category');
// \think\Route::rule('article/:id', 'home/Index/article');
// \think\Route::rule('tagArticle/:tag_id', 'home/Index/tagArticle');
// \think\Route::rule('tagArticle', 'home/Index/tagArticle');
// 
return [
	
	'category/:id' => 'home/Index/category',
	'article/:id' => 'home/Index/article',
	'tagArticle/:tag_id' => 'home/Index/tagArticle',
	'tagArticle' => 'home/Index/tagArticle',
];